import request from '@/utils/request'
// 查询流程分类
export function getCategories(query) {
  return request({
    url: '/flow/base/category/getCategories',
    method: 'post',
    data: query
  })
}

// 查询流程分类实体
export function checkEntityExist(id) {
  return request({
    url: '/flow/base/category/checkEntityExist' + id,
    method: 'get'
  })
}

// 新增修改流程分类
export function saveOrUpdate(data) {
  return request({
    url: '/flow/base/category/saveOrUpdate',
    method: 'post',
    data: data
  })
}
// 删除流程分类
export function deleteByIds(ids) {
  return request({
    url: '/flow/base/category/delete',
    method: 'post',
    data: ids
  })
}
